Skip to main content

Microsoft Office

Types used for interacting with Word documents and Excel spreadsheets.


📄 Word Documents (MSWordDocument)​

Represents an open Microsoft Word document and provides functions to manipulate it.

Properties​

PropertyDescription
GetNameReturns the name of the active document.
GetPathReturns the full system path where the document is stored.
GetTypeReturns "mswdoc".

Functions​

FunctionDescription
Save()Saves the current document.
Close()Closes the current document.
Quit()Completely closes the Microsoft Word application.
FindAndReplace(find, replace, replaceAll, clearFormatting)Finds and replaces text within the document.

📊 Spreadsheets (Spreadsheet)​

Represents an open Excel spreadsheet.

Properties​

PropertyDescription
GetTypeReturns "spreadsheet".

Note: For manipulating spreadsheets, please see the specific Excel Actions in the Actions Gallery.